<!DOCTYPE html>
<html>
<head>
	<title>MUKEFILE操作</title>

	<#include "common/headFile.ftl"/>

	<script type="text/javascript">
	function searchFile(){
		//创建ajax引擎
		var ajax;
		//获取元素对象
		var filename = document.getElementById("search").value;
		//判断文件名是否为空
		if(filename===""){
			new $.zui.Messager('请输入文件名关键字！', {
		       	icon: 'cloud-upload',// 定义消息图标
		       	type: 'warning',
		       	time:'1000'
		   	}).show();
			return false;
		}
		window.location.href="user!searchFile?filename="+filename;
	}
	</script>
</head>
<body>
	<div class="main">

		<#include "common/top.ftl"/>

		<div class="main-middle">

			<#include "common/leftMenu.ftl"/>

			<div class="main-middle-right">
				<div class="main-middle-right-top">
				   <div class="upload"><a href="upload">
					<button class="btn btn-primary" type="button" id="upload">
						<i class="icon-cloud-upload"></i>文件上传</button></a>
				   </div>
				  <div class="file-search">
					<div class="input-group">
					  <div class="input-control search-box search-box-circle has-icon-left has-icon-right search-example" id="searchboxExample">
					    <input id="search" type="text" class="form-control search-input" placeholder="文件名">
					    <label for="inputSearchExample3" class="input-control-icon-left search-icon"><i class="icon icon-search"></i></label>
					  </div>
					  <span class="input-group-btn">
					    <button class="btn" type="button" onclick="searchFile()">搜索</button>
					  </span>
					</div>
				   </div>
				</div>
				<div class="main-middle-right-top2">
					<span><a href="main"><i>DISK(A)</i></a></span>
					<i style="color:red;font-weight:bold;font-size:16px;">${msg!}</i>
				</div>
				<div class="main-middle-right-content">
					<div class="file-list">
						<div class="table-not-scroll">
						<table class="table">
						  <thead>
						    <tr>
						      <th width="600">文件名</th>
						      <th width="250">大小</th>
						      <th>上传日期</th>
						      <th>操作</th>
						    </tr>
						  </thead>
						 </table>
						 </div>
						 <div class="table-scroll">
						 	<#include "dialog/fileDelete.ftl" >
						</div>
					</div>
				</div>
			</div>
		</div>

		<#include "common/bottom.ftl"/>
	</div>
</body>
</html>